﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Order.master" AutoEventWireup="true" CodeFile="MakePO.aspx.cs" Inherits="MakePO" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
    <table style="width:700px;">
        <tr>
            <td>
                Supplier:</td>
            <td>
                <asp:DropDownList ID="ddlSupplier" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlSupplier_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td>
                Expected Delivery Date:</td>
            <td><asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
                <asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" DaysModeTitleFormat="MMMM,yy" Format="MM/dd/yyyy">
                </cc1:CalendarExtender>
            
                                </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="gvOrderList" runat="server" AutoGenerateColumns="False" 
                    Width="700px">
                    <Columns>
                        <asp:BoundField DataField="OrderID" HeaderText="Order ID" >
                            <ItemStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ItemDesc" HeaderText="Item Desc" >
                            <ItemStyle Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OrderQty" HeaderText="Order Qty" >
                            <ItemStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Price" HeaderText="Price" >
                            <ItemStyle Width="70px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OrderDate" HeaderText="OrderDate" >
                            <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Status" HeaderText="Status" >
                            <ItemStyle Width="200px" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                Deliver to:&nbsp;
                <asp:DropDownList ID="ddlDeliverTo" runat="server">
                </asp:DropDownList>
            </td>
            <td colspan="2">
                Attn:&nbsp;
                <asp:TextBox ID="txtAttn" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" colspan="4">
                <asp:Button ID="btnMakePO" runat="server" Text="Make PO" 
                    onclick="btnMakePO_Click" />
            </td>
        </tr>
    </table>
</asp:Content>

